//
//  GMRowItem.m
//  StockSystem
//
//  Created by 小熊 on 2018/6/26.
//  Copyright © 2018年 小熊. All rights reserved.
//

#import "GMRowItem.h"

@implementation GMRowItem
// 设置cell的主标题、图标
+ (instancetype)itemWithTitle:(NSString *)title image:(UIImage *)image
{
    GMRowItem *item = [[self alloc] init];
    item.image = image;
    item.title = title;
    return item;
}

// 设置cell的主标题
+ (instancetype)itemWithTitle:(NSString *)title
{
    GMRowItem *item = [self itemWithTitle:title image:nil];
    return item;
}
@end
